package top.honlnk.czuan.mapper.dict;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import top.honlnk.czuan.pojo.entity.AiWordExplain;

import java.util.List;

@Mapper
public interface ExplainOssUrlMapper {

    @Insert("insert into ai_word_explain(id, word, data_oss_url) values (#{id}, #{word}, #{dataOssUrl})")
    void addExplain(AiWordExplain aiWordExplain);

    @Select("select * from ai_word_explain where word = #{word}")
    List<AiWordExplain> getExplainByWord(String word);
}
